package com.moli.iov.base.model.dto.req;

import com.moli.iov.base.model.UserDto;
import java.util.List;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import lombok.Data;

/**
 * 围栏绑定参数
 *
 * @author whl
 * @date 2019-09-21 09:11:01
 */
@Data
public class VehicleFenceBindingReqDto extends UserDto {

  /**
   * 查询参数（0：车牌号，1：vin）
   */
  private Integer queryParam;
  /**
   * 查询值
   */
  private String queryValue;
  /**
   * 车架号
   */
  @NotEmpty(message = "车架号不能为空", groups = {Save.class,
      Update.class, Delete.class})
  private List<String> listVin;

  /**
   * 围栏id
   */
  @NotNull(message = "围栏id不能为空", groups = {Save.class,
      Update.class, Read.class,
      Delete.class})
  private Long fenceId;
  /**
   * 所属公司
   */
  private Long companyId;

  public interface Save {

  }

  public interface Update {

  }

  /**
   * 查看
   */
  public interface Read {

  }

  /**
   * 删除
   */
  public interface Delete {

  }

}
